Skip to content

Conversation

@TenEniunlsl
Copy link

Issues with GtkSharp packages
WebkitGtkSharp not found on nuget.org or something
Android build deactivated
Project references added

@lytico
Copy link
Collaborator

lytico commented Oct 23, 2025

WebkitGtkSharp is part of https://github.com/GtkSharp:

https://github.com/GtkSharp/GtkSharp/tree/develop/Source/Libs/WebkitGtkSharp

package is here, don't remember if i pushed it to nuget.org:

https://github.com/GtkSharp/GtkSharp/pkgs/nuget/WebkitGtkSharp

BUT: Linux only!

EDIT: yes, it's on nuget.org too:
https://www.nuget.org/packages/WebkitGtkSharp/

Copy link
Member

@Lemon73-Computing Lemon73-Computing left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for contribution!

Just to confirm, is this PR ready for review, or are you still making changes?

<_IncludeTizen></_IncludeTizen>
<_IncludeGtk>true</_IncludeGtk>
<_IncludeAndroid>true</_IncludeAndroid>
<_IncludeAndroid>false</_IncludeAndroid>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Making this change may cause CI/CD to cease functioning.

Therefore, I believe it would be preferable either to modify the CI/CD setup accordingly

sed -i 's/_IncludeAndroid>true/_IncludeAndroid>/g' Directory.Build.Override.props

# .github/workflows/build-gtk.yml
- sed -i 's/_IncludeAndroid>true/_IncludeAndroid>/g' Directory.Build.Override.props 
+ sed -i 's/_IncludeAndroid>/_IncludeAndroid>/g' Directory.Build.Override.props

or revert this change.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok i changed it because VS 2022 would'nt like to install an old Android SDK or something


<PropertyGroup>
<TargetFrameworks>$(_MauiDotNetTfm);$(MauiPlatforms)</TargetFrameworks>
<TargetFrameworks>$(_MauiDotNetTfm)</TargetFrameworks>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What is the reason for deleting the platform?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Something like a mismatch from compiler, i can try to reproduce it and show you the error message

Copy link
Author

@TenEniunlsl TenEniunlsl Oct 27, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In Visual Studio i got messages like that
image

thats the Text, sry it's in German and everyone it's the same with another Project, you can scroll down there is one i have translated

Problem beim Projekt "Graphics.Skia" während des letzten Vorgangs: Der Wert der Eigenschaft "TargetFrameworks" ist zwischen Zielframeworks inkonsistent. Diese Eigenschaft muss identisch sein, damit die NuGet-Wiederherstellung ordnungsgemäß funktioniert. Der Wert "netstandard2.1;netstandard2.0;net8.0;net8.0-gtk;;net7.0;" aus der Debug|AnyCPU|netstandard2.1-Konfiguration wird verwendet, andere Zielframeworks wählen möglicherweise keine NuGet-Objekte aus.. Sie müssen möglicherweise die Projektmappe neu laden, nachdem Sie das Problem behoben haben. 
Problem beim Projekt "Maps" während des letzten Vorgangs: Der Wert der Eigenschaft "TargetFrameworks" ist zwischen Zielframeworks inkonsistent. Diese Eigenschaft muss identisch sein, damit die NuGet-Wiederherstellung ordnungsgemäß funktioniert. Der Wert "netstandard2.1;netstandard2.0;net8.0;net8.0-gtk;" aus der Debug|AnyCPU|netstandard2.1-Konfiguration wird verwendet, andere Zielframeworks wählen möglicherweise keine NuGet-Objekte aus.. Sie müssen möglicherweise die Projektmappe neu laden, nachdem Sie das Problem behoben haben. 
Problem beim Projekt "Controls.Xaml" während des letzten Vorgangs: Der Wert der Eigenschaft "TargetFrameworks" ist zwischen Zielframeworks inkonsistent. Diese Eigenschaft muss identisch sein, damit die NuGet-Wiederherstellung ordnungsgemäß funktioniert. Der Wert "netstandard2.1;netstandard2.0;net8.0;net8.0-gtk;net8.0-android;" aus der Debug|AnyCPU|netstandard2.1-Konfiguration wird verwendet, andere Zielframeworks wählen möglicherweise keine NuGet-Objekte aus.. Sie müssen möglicherweise die Projektmappe neu laden, nachdem Sie das Problem behoben haben. 
Problem beim Projekt "Controls.Foldable" während des letzten Vorgangs: Der Wert der Eigenschaft "TargetFrameworks" ist zwischen Zielframeworks inkonsistent. Diese Eigenschaft muss identisch sein, damit die NuGet-Wiederherstellung ordnungsgemäß funktioniert. Der Wert "net8.0;net8.0-gtk;net8.0-android;" aus der Debug|AnyCPU|net8.0-Konfiguration wird verwendet, andere Zielframeworks wählen möglicherweise keine NuGet-Objekte aus.. Sie müssen möglicherweise die Projektmappe neu laden, nachdem Sie das Problem behoben haben. 
Problem beim Projekt "Microsoft.AspNetCore.Components.WebView.Maui" während des letzten Vorgangs: Der Wert der Eigenschaft "TargetFrameworks" ist zwischen Zielframeworks inkonsistent. Diese Eigenschaft muss identisch sein, damit die NuGet-Wiederherstellung ordnungsgemäß funktioniert. Der Wert "net8.0;net8.0-gtk;" aus der Debug|AnyCPU|net8.0-Konfiguration wird verwendet, andere Zielframeworks wählen möglicherweise keine NuGet-Objekte aus.. Sie müssen möglicherweise die Projektmappe neu laden, nachdem Sie das Problem behoben haben. 
Problem beim Projekt "Maui.Controls.Sample" während des letzten Vorgangs: Der Wert der Eigenschaft "TargetFrameworks" ist zwischen Zielframeworks inkonsistent. Diese Eigenschaft muss identisch sein, damit die NuGet-Wiederherstellung ordnungsgemäß funktioniert. Der Wert "net8.0-gtk;net8.0-android;;net8.0" aus der Debug|AnyCPU|net8.0-gtk-Konfiguration wird verwendet, andere Zielframeworks wählen möglicherweise keine NuGet-Objekte aus.. Sie müssen möglicherweise die Projektmappe neu laden, nachdem Sie das Problem behoben haben. 
Problem beim Projekt "Compatibility" während des letzten Vorgangs: Der Wert der Eigenschaft "TargetFrameworks" ist zwischen Zielframeworks inkonsistent. Diese Eigenschaft muss identisch sein, damit die NuGet-Wiederherstellung ordnungsgemäß funktioniert. Der Wert "netstandard2.1;netstandard2.0;net8.0;net8.0-gtk;net8.0-android;" aus der Debug|AnyCPU|netstandard2.1-Konfiguration wird verwendet, andere Zielframeworks wählen möglicherweise keine NuGet-Objekte aus.. Sie müssen möglicherweise die Projektmappe neu laden, nachdem Sie das Problem behoben haben. 
Problem beim Projekt "Core" während des letzten Vorgangs: Der Wert der Eigenschaft "TargetFrameworks" ist zwischen Zielframeworks inkonsistent. Diese Eigenschaft muss identisch sein, damit die NuGet-Wiederherstellung ordnungsgemäß funktioniert. Der Wert "netstandard2.1;netstandard2.0;net8.0;net8.0-gtk;net8.0-android;" aus der Debug|AnyCPU|netstandard2.1-Konfiguration wird verwendet, andere Zielframeworks wählen möglicherweise keine NuGet-Objekte aus.. Sie müssen möglicherweise die Projektmappe neu laden, nachdem Sie das Problem behoben haben. 
Problem beim Projekt "Graphics" während des letzten Vorgangs: Der Wert der Eigenschaft "TargetFrameworks" ist zwischen Zielframeworks inkonsistent. Diese Eigenschaft muss identisch sein, damit die NuGet-Wiederherstellung ordnungsgemäß funktioniert. Der Wert "netstandard2.1;netstandard2.0;net8.0;net8.0-gtk;net8.0-android;;net7.0;net7.0-android;" aus der Debug|AnyCPU|netstandard2.1-Konfiguration wird verwendet, andere Zielframeworks wählen möglicherweise keine NuGet-Objekte aus.. Sie müssen möglicherweise die Projektmappe neu laden, nachdem Sie das Problem behoben haben. 
Problem beim Projekt "Essentials" während des letzten Vorgangs: Der Wert der Eigenschaft "TargetFrameworks" ist zwischen Zielframeworks inkonsistent. Diese Eigenschaft muss identisch sein, damit die NuGet-Wiederherstellung ordnungsgemäß funktioniert. Der Wert "netstandard2.1;netstandard2.0;net8.0;net8.0-gtk;net8.0-android;;net7.0;net7.0-android;" aus der Debug|AnyCPU|netstandard2.1-Konfiguration wird verwendet, andere Zielframeworks wählen möglicherweise keine NuGet-Objekte aus.. Sie müssen möglicherweise die Projektmappe neu laden, nachdem Sie das Problem behoben haben. 
Problem beim Projekt "Controls.Core" während des letzten Vorgangs: Der Wert der Eigenschaft "TargetFrameworks" ist zwischen Zielframeworks inkonsistent. Diese Eigenschaft muss identisch sein, damit die NuGet-Wiederherstellung ordnungsgemäß funktioniert. Der Wert "netstandard2.1;netstandard2.0;net8.0;net8.0-gtk;net8.0-android;" aus der Debug|AnyCPU|netstandard2.1-Konfiguration wird verwendet, andere Zielframeworks wählen möglicherweise keine NuGet-Objekte aus.. Sie müssen möglicherweise die Projektmappe neu laden, nachdem Sie das Problem behoben haben.

Issue in Graphics.Skia project during last operation: The value of the TargetFrameworks property is inconsistent between target frameworks. This property must be the same for NuGet restore to work properly. The value "netstandard2.1;netstandard2.0;net8.0;net8.0-gtk;;net7.0;" from the Debug|AnyCPU|netstandard2.1 configuration is used, other target frameworks may not select NuGet objects. You may need to reload the solution after resolving the issue.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Any suggestions?

<ItemGroup>
<ProjectReference Include="..\Graphics\Graphics.csproj" />
</ItemGroup>
<ItemGroup Condition="$(TargetFramework.Contains('-gtk')) != 'true'">
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What is the reason for removing the platform specification here as well?

Copy link
Author

@TenEniunlsl TenEniunlsl Oct 26, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i have asked the same question here

<ItemGroup Condition="$(TargetFramework.Contains('-gtk')) != 'true'"> <PackageReference Include="GtkSharp" /> </ItemGroup>

For me it doesn't make sense to include GtkSharp if it isn't a -gtk project and also it would'nt compile

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In my opinion it should look like

<ItemGroup Condition="$(TargetFrameworks.Contains('-gtk')) == 'True'"> <PackageReference Include="CairoSharp" Version="3.24.24.95" /> <PackageReference Include="GtkSharp" Version="3.24.24.95" /> <PackageReference Include="GdkSharp" Version="3.24.24.95" /> <PackageReference Include="PangoSharp" Version="3.24.24.95" /> </ItemGroup>

There was n s missing in TargetFrameworks and it should be "== True", correct me if i'm wrong

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I looked into it on my end, and it seems that MSBuild is case-insensitive.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

maybe i will try it, as i changed the workload i had read it is case sensitive

but it should'nt != it should ==

@TenEniunlsl
Copy link
Author

Thank you for contribution!

Just to confirm, is this PR ready for review, or are you still making changes?

It was only a --> i show you so you can fix it
This project was to new for me to work on it at this moment

About me: I have 15years of expierence in .NET with C# and VB but not that mutch on git and github so i have to learn a bit

Ludwig Chilla (aka TenEniunlsl) and others added 2 commits October 27, 2025 10:18
Condition="$(TargetFrameworks.Contains('-gtk')) == 'True'"

Nuget.org added to NuGet.config
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants